package com.demo.gulimall.order.vo;

import com.demo.gulimall.order.entity.Order;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单提交返回结果
 * @author Chen Yuan
 * @create 2023-06-26  16:26
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class OrderSubmitResVo implements Serializable {

	// 下单成功的订单信息
	private Order order;

	// 操作状态码, 0 成功
	private Integer code;

	private String msg;

	public Boolean isSuccess(){
		return code == 0;
	}
}
